package com.soft.sitegenerator.form;

import java.util.Collection;

import org.apache.struts.action.ActionForm;

import com.soft.sitegenerator.Component;
import com.soft.sitegenerator.DataBaseComponent;
import com.soft.sitegenerator.business.hibernate.Sheet;
import com.soft.sitegenerator.business.hibernate.User;
import com.soft.sitegenerator.business.hibernate.WebSite;

public class WebSiteEditForm extends ActionForm {

	/*
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Component component = new DataBaseComponent();

	private WebSite webSite = (WebSite) component.getBean("webSitesHib");

	private Collection users;

	private Long idUser = null;

	private Collection sheets;

	private Long idSheet = null;

	public Component getComponent() {
		return component;
	}

	public void setComponent(Component component) {
		this.component = component;
	}

	public Long getIdSheet() {
		return idSheet;
	}

	public void setIdSheet(Long idSheet) {
		this.idSheet = idSheet;
	}

	public Long getIdUser() {
		return idUser;
	}

	public void setIdUser(Long idUser) {
		this.idUser = idUser;
	}

	public Collection getSheets() {
		return sheets;
	}

	public void setSheets(Collection sheets) {
		this.sheets = sheets;
	}

	public Collection getUsers() {
		return users;
	}

	public void setUsers(Collection users) {
		this.users = users;
	}

	public WebSite getWebSite() {
		return webSite;
	}

	public void setWebSite(WebSite webSite) {
		this.webSite = webSite;
	}
	
	public Long getId() {
		return webSite.getId();
	}

	public void setId(Long id) {
		this.webSite.setId(id);
	}
	
	public String getName() {
		return webSite.getName();
	}

	public void setName(String name) {
		this.webSite.setName(name);
	}
	
	public String getTitle() {
		return webSite.getTitle();
	}

	public void setTitle(String title) {
		this.webSite.setTitle(title);
	}
	
	public String getContextPath() {
		return webSite.getContextPath();
	}

	public void setContextPath(String contextPath) {
		this.webSite.setContextPath(contextPath);
	}
	
	public User getOwner() {
		return webSite.getOwner();
	}

	public void setOwner(User owner) {
		this.webSite.setOwner(owner);
	}
	
	public Sheet getSheet() {
		return webSite.getSheet();
	}

	public void setSheet(Sheet sheet) {
		this.webSite.setSheet(sheet);
	}
	
	

}